package com.yk.anima.api;

import com.yk.anima.pojo.ProductsDirds;
import com.yk.anima.response.QueryResponseResult;
import com.yk.anima.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import java.util.List;

/**
 * @author xiaokai
 * @create 2021-05-13 09:03:23
 * @desc...对鸟进行管理
 */

@Api(value = "管理鸟类",description = "对鸟数据管理")
public interface ProductsDirdsApi {

    @ApiOperation("查询所有")
    public List<ProductsDirds> findAll();

    @ApiOperation("根据Id查询")
    public ProductsDirds findById(int id);

    @ApiOperation("修改鸟类")
    public ResponseResult update(@ApiParam("当前宠物ID") int id,@ApiParam("当前用户修改后的ID") ProductsDirds productsDirds);

    @ApiOperation("添加鸟类")
    public ResponseResult save(ProductsDirds productsDirds);

    @ApiOperation("删除鸟类")
    public ResponseResult deleteById(int id);

    @ApiOperation("分页查询")
    public QueryResponseResult findByPage(int page,int size,String name);



}
